package com.type.dao;

import java.util.ArrayList;

import javax.annotation.Resource;

import org.springframework.orm.ibatis.SqlMapClientTemplate;
import org.springframework.stereotype.Repository;

import com.type.vo.DeptVO;

/**
 * 부서테이블에 관한 DAO
 * @author hyem55
 *
 */
@Repository("deptDAO")
public class DeptDAO {

	@Resource(name="sqlMapClientTemplate")
	private SqlMapClientTemplate sqlmap;
	
	/**
	 * 트리구조의 view에 부서정보 출력
	 * @return ArrayList<DeptVO>
	 */
	@SuppressWarnings("unchecked")
	public ArrayList<DeptVO> selectDeptList(){
		return (ArrayList<DeptVO>)sqlmap.queryForList("dept.selectDeptList");
		
	}
}
